﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="ChangePassword.aspx.cs" Inherits="EARS.ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <%@ register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>
        Change Password</h2>
    <br />
    <asp:Label ID="lblOldPassword" runat="server" Text="Old Password:"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="txtOldPassword" runat="server" Class="textbox" 
    TextMode="Password"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic"
        ErrorMessage="Enter old password" ForeColor="Red" 
    ControlToValidate="txtOldPassword"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblNewPassword" runat="server" Text="New Password:"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="txtNewPassword" runat="server" Class="textbox" 
    TextMode="Password"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNewPassword"
        Display="Dynamic" ErrorMessage="Enter new password" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblConfirm" runat="server" Text="Confirm New Password:"></asp:Label>
    &nbsp;<asp:TextBox ID="txtConfirm" runat="server" Class="textbox" 
    TextMode="Password"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="Dynamic"
        ErrorMessage="Confirm new password" ForeColor="Red" 
    ControlToValidate="txtConfirm"></asp:RequiredFieldValidator>
    &nbsp;<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtNewPassword"
        ControlToValidate="txtConfirm" Display="Dynamic" ErrorMessage="Password mismatch"
        ForeColor="Red"></asp:CompareValidator>
    <div style="text-align: right">
        <asp:Button ID="btnCancel" runat="server" OnClick="btnCancel_Click" Text="Cancel"
            Class="button" CausesValidation="False" />
        <asp:Button ID="btnConfirm" runat="server" OnClick="btnConfirm_Click" Text="Confirm"
            Class="button" />
    </div>
    <asp:Panel ID="ModalPanel" runat="server" Width="500px" BackColor="#E7E3CE" BorderColor="#573D26"
        BorderWidth="3px">
        <div style="text-align: center">
            <asp:Label ID="lblPopUp" runat="server"></asp:Label>
        </div>
        <br />
        <div style="text-align: center">
            <asp:Button ID="btnClose" runat="server" Text="Close" Class="button" 
                CausesValidation="False" onclick="btnClose_Click" />
        </div>
    </asp:Panel>
    <asp:ModalPopupExtender ID="mpe" runat="server" TargetControlID="button" PopupControlID="ModalPanel"
        BackgroundCssClass="modalBackground" />
    <asp:ScriptManager ID="asm" runat="server" />
    <asp:Button ID="button" runat="server" Text="Button" Class="hidden"/>
</asp:Content>
